#include "cevent.h"

CEvent::CEvent()
{
    this->parameters=new QList<CParameter *>();

}
CEvent::CEvent(QString eventName,QString eventType,QString eventDescription){
    this->parameters=new QList<CParameter *>();
    this->EventName=eventName;
    this->EventType=eventType;
    this->EventDescription=eventDescription;
}

void CEvent::setEventName(QString eventName){
    this->EventName=eventName;
}

void CEvent::setEventType(QString eventType){
    this->EventType=eventType;
}

void CEvent::setEventDescription(QString eventDescription){
    this->EventDescription=eventDescription;
}

QString CEvent::getEventName(){
    return this->EventName;
}

QString CEvent::getEventType(){
    return this->EventType;
}

QString CEvent::getEventDescription(){
    return this->EventDescription;
}

void CEvent::addParameter(CParameter *parameter){
    this->parameters->append(parameter);
}

CParameter* CEvent::getParameter(int index){
    return this->parameters->at(index);
}

int CEvent::getCount(){
   return  this->parameters->count();
}
